package com.kaishengit.dao;

import com.kaishengit.entity.OrderItem;
import com.kaishengit.util.DBHelp;

public class OrderItemDao {

	DBHelp<OrderItem> db=new DBHelp<OrderItem>();
	public boolean save(OrderItem orderItem){
		String sql="insert into t_orderitem (orderid,prodid,num,total) values(?,?,?,?)";
		return db.executeSQL(sql, orderItem.getOrderid(),orderItem.getProdid(),orderItem.getNum(),orderItem.getTotal());
	}
}
